package com.bluetoothsms.common;

import java.util.Date;

public class CallLogEntry {

	public final static int FIELD_COUNT = 4;

	private final String mName;
	private final String mNumber;
	private final Date mDate; // since 01.01.1970 in milliseconds
	private final long mDuration; // in seconds

	public CallLogEntry(String name, String number, long date, long duration) {
		mName = name;
		mNumber = number;
		mDate = new Date(date);
		mDuration = duration;
	}

	public String getName() {
		return mName;
	}

	public String getNumber() {
		return mNumber;
	}

	public Date getDate() {
		return mDate;
	}

	public long getDuration() {
		return mDuration;
	}
}
